package com.ruoyi.common.integrate.constant;

/**
 * @Author: MMDZ
 * @Desc:
 */
public class WxConstant {

    /** 获取企业微信 网页授权 url */
    public static final String WX_CONNECT_OAUTH2_AUTHORIZE_URL =
            "https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect";

    /** 获取企业微信 access_token url */
    public static final String WX_ACCESS_TOKEN_URL = "https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=%s&corpsecret=%s";

    /** 获取企业微信 通讯录-部门列表 url */
    public static final String WX_DEPT_LIST_URL = "https://qyapi.weixin.qq.com/cgi-bin/department/list?access_token=%s";

    /** 获取企业微信 通讯录-人员列表 url */
    public static final String WX_USER_LIST_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/simplelist?access_token=%s&department_id=%s&fetch_child=%s";

    /** 获取企业微信 部门成员详情 url */
    public static final String WX_DEPT_USER_LIST_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/list?access_token=%s&department_id=%s";

    /** 获取企业微信 根据code获取成员信息 url */
    public static final String WX_USER_INFO_BY_CODE_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=%s&code=%s";

    /** 获取企业微信 发送应用消息 url */
    public static final String WX_SEND_MESSAGE = "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=%s";
}
